#!/bin/sh

# wall
_get_WP() {
    # looks like a particularly big clusterfuck, because it is
    # proven to work however, most of the time
    echo ~/.config/walls/wall$(($(($(($(date +%M))) % $(($(ls ~/.config/walls | wc -l))))) + 1)).png
}

# run
#xautolock -time 10 -locker slock &
[ $PERSONALDEVICE -eq 0 ] && xinput --set-prop 'SteelSeries Kana v2 Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 &
[ $PERSONALDEVICE -eq 0 ] && xsetwacom --set "Wacom Intuos S Pen stylus" Area 0 0 11400 7125 &
[ $PERSONALDEVICE -eq 0 ] && xinput map-to-output $(xinput | grep "Pen stylus" | cut -f 2 | cut -c 4-5) HDMI-A-1 &
slstatus &
xbindkeys -p &
feh --bg-fill $(_get_WP) &